package com.kgame5.xtank3d.effect.myemitters {
import kgame5.k3d.core.obj3d.node3d.Node3D;
import kgame5.kmath.MathDG;

import com.kgame5.xtank3d.effect.MyEmitter;
import com.kgame5.xtank3d.resource.ResourceManagerX;

/**
 * @author kk
 */
public class DustEmitter extends MyEmitter{
	
	public function DustEmitter() {
		var md:Node3D=ResourceManagerX.getInstance().getDust();
		
		//Factory3D.CreateSprite3D("MyMc_Dust");
		
		md.life=MathDG.random(4, 6);
		
		md.velo.y=6;//MathDG.random(3, 4);
		md.ti.hardVO.v3d_a.y=-2;
		
		md.scale.mul(MathDG.random(6,8)*10/100);
		
		var scaleSpeed:Number=-0.1;
		md.ti.hardVO.v3d_sv.fill(scaleSpeed,scaleSpeed,scaleSpeed);
		
		//md.alphaSpeed=-0.1;
	
		//烟自己的旋转
		md.rotY=MathDG.random(0,360);
		
		//--加入
		md_g.addChild(md);
	}
}
}
